X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_image_link.php;h=c22939afa6eb7091c6d90337356f9544f613d860;hb=78f1a5f44941de2459b71c375e36cf88227c689c;hp=ca181f373b8ba98bb8d26deac6cd45aa1d93635c;hpb=e8de5ed331aefaba360e34d85923afebc37f1b17;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/function.get_image_link.php b/wwwroot/inc/smarty/node_methodz/function.get_image_link.php index ca181f3..c22939a 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_image_link.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_image_link.php @@ -3,7 +3,7 @@ function smarty_function_get_image_link($params,&$smarty) { global $db; $id = $params['id']; - if (!is_numeric($id)) { return 1;} + if (!is_numeric($id)) { $id=0;} $img = './'.SYSTEM_IMAGES.'/nodes/'.substr($id,0,1)."/".substr($id,1,1)."/$id.gif"; if (file_exists($img)) { @@ -18,7 +18,6 @@ function smarty_function_get_image_link($params,&$smarty) { } echo $imglink; } - return 0; } ?>