fix assumed typo for returnvalue on error in function title; defined/described as boolean/string but was array for one error case

This commit is contained in:
Klaus Leithoff 2012-01-06 12:54:58 +00:00
parent 94b69703e4
commit 237e8ce9f9

View File

@ -724,7 +724,7 @@ class egw_link extends solink
if ($app == '' || !is_array($reg = self::$app_register[$app]) || !isset($reg['title']))
{
if (self::DEBUG) echo "<p>".__METHOD__."('$app','$id') something is wrong!!!</p>\n";
return array();
return false; //array(); // not sure why it should return an array on failure, as the description states boolean/string
}
$method = $reg['title'];