fixed session fixation
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / smarty / node_methodz / function.get_image_link.php
index 9470a2bfe8ea004827bd535568e39c1f26d40d6b..06194e1d44bd409205af2e78e1539632b42ad8e5 100644 (file)
@@ -9,9 +9,13 @@ function smarty_function_get_image_link($params,&$smarty) {
        }
        else {
                $set = $db->query("select user_id from users where user_id = $id");
-               if ($set->getNumRows() > 0) $imglink = "/images/nodes///.gif";
-               else $imglink = "/images/nodes/1/0/101.gif";
+               if ($set->getNumRows() > 0) {
+                       $imglink = "/images/nodes///.gif";
+               } else {
+                       $imglink = "/images/nodes/1/0/101.gif";
+               }
                echo $imglink;
        }
 }
+
 ?>
This page took 0.134403 seconds and 4 git commands to generate.