k_neurons fix
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / smarty / node_methodz / function.get_image_link.php
index ca181f373b8ba98bb8d26deac6cd45aa1d93635c..c22939afa6eb7091c6d90337356f9544f613d860 100644 (file)
@@ -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;
 }
 
 ?>
This page took 0.135962 seconds and 4 git commands to generate.