GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
wrapper (supporting numeric as well as hash input parameter) around a new permission...
[mirrors/Kyberia-bloodline.git]
/
wwwroot
/
inc
/
smarty
/
node_methodz
/
function.get_image_link.php
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 a391aa07d0107b67bde9505be0c0ff471d2c9520..c22939afa6eb7091c6d90337356f9544f613d860 100644
(file)
--- 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)) {
This page took
0.183537 seconds
and
4
git commands to generate.