fix for HEAD, find_image does no longer lock in the api for not found images

This commit is contained in:
Ralf Becker 2003-04-22 23:59:21 +00:00
parent 1e678173e0
commit c7c3ba3e66

View File

@ -113,11 +113,9 @@ class html
{ {
if ($image != '') if ($image != '')
{ {
if (strstr($image,'.') === False) if (strpos($image,'.')) $image = substr($image,0,strpos($image,'.'));
{ if (!($path = $GLOBALS['phpgw']->common->image($app,$image)) &&
$image .= '.gif'; !($path = $GLOBALS['phpgw']->common->image('phpgwapi',$image)))
}
if (!($path = $GLOBALS['phpgw']->common->image($app,$image)))
{ {
$path = $image; // name may already contain absolut path $path = $image; // name may already contain absolut path
} }