removing warning messages and not working rss
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / smarty / resource.kyberia.php
index 895bb94f141cca8d8b0cfc89e8a0e2dc26a0eb5e..bf28a33be3f153feacd2e2949ac0df59dddc2708 100644 (file)
@@ -24,7 +24,7 @@ function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj) {
                                */
     // populating $tpl_source with actual template contents
        //$tpl_source = stripslashes($set->getString('node_content'));
-       $tpl_source = nodes::getNodeById($add_template_id,$_SESSION['user_id']);
+       $tpl_source = nodes::getNodeById($add_template_id,empty($_SESSION['user_id']) ? "" : $_SESSION['user_id']);
        $tpl_source = $tpl_source['node_content'];
     // return true on success, false to generate failure notification
     return true;
This page took 0.121607 seconds and 4 git commands to generate.