From: niekt0 Date: Sat, 13 Nov 2010 09:13:39 +0000 (+0100) Subject: && fix X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=58a9d5d7ad8702f94afda96043314b0754ff2c98;p=mirrors%2FKyberia-bloodline.git && fix --- diff --git a/wwwroot/nodes.php b/wwwroot/nodes.php index 5e757b5..b4f0404 100644 --- a/wwwroot/nodes.php +++ b/wwwroot/nodes.php @@ -343,7 +343,7 @@ else { //assigning user data to smarty if user logged in -if (isset($_SESSION['user_id'])&($user_id=$_SESSION['user_id'])) { +if (isset($_SESSION['user_id'])&&($user_id=$_SESSION['user_id'])) { $smarty->assign('_POST',$_POST); $smarty->assign('bookmarks',$_SESSION['bookmarks']); $smarty->assign('ignore',$_SESSION['ignore']); @@ -434,7 +434,7 @@ else { } -if (($node['template_id']!='2019721') & (isset($_SESSION['user_id']))){ +if (($node['template_id']!='2019721') && (isset($_SESSION['user_id']))){ //setting user location $q="update users set last_action=NOW(),user_location_vector='".$node['node_vector']."',user_action='".addslashes($node['node_name'])."',user_action_id='".$node['node_id']."' where user_id='".$_SESSION['user_id']."'"; $db->executequery($q); @@ -551,7 +551,7 @@ if ($node['external_link']=='header://svg' && !is_numeric($template_id)) { } //show own header -elseif (isset($_SESSION['header_id']) & ($_SESSION['header_id']==true)) { +elseif (isset($_SESSION['header_id']) && ($_SESSION['header_id']==true)) { $smarty->assign('header_id',$_SESSION['header_id']); $smarty->template_dir=OWN_TEMPLATE_DIR; $content=$smarty->fetch($_SESSION['header_id'].".tpl");