From 79a1334bcab6596cf6695b1949dbb04c10c1cdf7 Mon Sep 17 00:00:00 2001 From: niekt0 Date: Sat, 2 Apr 2011 02:54:59 +0200 Subject: [PATCH] php warning removed --- wwwroot/inc/smarty/resource.kyberia.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2