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:58:10 +00:00
parent 86d1ee0e35
commit 298d681e2e

View File

@ -689,7 +689,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'];