X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_image_link.php;h=c22939afa6eb7091c6d90337356f9544f613d860;hb=ca9205d721ec662076a05441ab27f247b104318a;hp=a391aa07d0107b67bde9505be0c0ff471d2c9520;hpb=819e561767f728e36b0b4205a2022ba224c847fd;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..c22939a 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)) { $id=0;} $img = './'.SYSTEM_IMAGES.'/nodes/'.substr($id,0,1)."/".substr($id,1,1)."/$id.gif"; if (file_exists($img)) {