X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_image_link.php;h=ca181f373b8ba98bb8d26deac6cd45aa1d93635c;hb=e8de5ed331aefaba360e34d85923afebc37f1b17;hp=a391aa07d0107b67bde9505be0c0ff471d2c9520;hpb=62eccaa3daf4e9680c561dbc6034b74f3c83b13b;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 a391aa0..ca181f3 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_image_link.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_image_link.php @@ -2,6 +2,8 @@ function smarty_function_get_image_link($params,&$smarty) { global $db; $id = $params['id']; + + if (!is_numeric($id)) { return 1;} $img = './'.SYSTEM_IMAGES.'/nodes/'.substr($id,0,1)."/".substr($id,1,1)."/$id.gif"; if (file_exists($img)) { @@ -16,6 +18,7 @@ function smarty_function_get_image_link($params,&$smarty) { } echo $imglink; } + return 0; } ?>