diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 47d6d80542..50fc66a5ab 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -975,7 +975,7 @@ } $image = $lang_images; } - while (!$image_found && list(,$img) = each($image)) + while (empty($image_found) && list(,$img) = each($image)) { if(isset($this->found_files[$appname][$img.$ext])) {