From: niekt0 Date: Sat, 2 Apr 2011 00:54:59 +0000 (+0200) Subject: php warning removed X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=79a1334bcab6596cf6695b1949dbb04c10c1cdf7;p=mirrors%2FKyberia-bloodline.git php warning removed --- diff --git a/wwwroot/inc/smarty/resource.kyberia.php b/wwwroot/inc/smarty/resource.kyberia.php index dc77b4f..1e4a7c1 100644 --- a/wwwroot/inc/smarty/resource.kyberia.php +++ b/wwwroot/inc/smarty/resource.kyberia.php @@ -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,$user_id); + $tpl_source = nodes::getNodeById($add_template_id,$_SESSION['user_id']); $tpl_source = $tpl_source['node_content']; // return true on success, false to generate failure notification return true;