From fd094549b00294ba13b4c04fcf4e7ed833a96e21 Mon Sep 17 00:00:00 2001 From: niekt0 Date: Sat, 1 Oct 2011 14:41:36 +0200 Subject: [PATCH] minor cleanup --- {wwwroot/inc => trash}/database.inc-bak | 0 {wwwroot/inc => trash}/transaction.inc | 0 wwwroot/inc/smarty/node_methodz/function.get_poll.php | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename {wwwroot/inc => trash}/database.inc-bak (100%) rename {wwwroot/inc => trash}/transaction.inc (100%) diff --git a/wwwroot/inc/database.inc-bak b/trash/database.inc-bak similarity index 100% rename from wwwroot/inc/database.inc-bak rename to trash/database.inc-bak diff --git a/wwwroot/inc/transaction.inc b/trash/transaction.inc similarity index 100% rename from wwwroot/inc/transaction.inc rename to trash/transaction.inc diff --git a/wwwroot/inc/smarty/node_methodz/function.get_poll.php b/wwwroot/inc/smarty/node_methodz/function.get_poll.php index 23f2c9e..020281f 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_poll.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_poll.php @@ -17,7 +17,7 @@ function smarty_function_get_poll($params,&$smarty) { $voted='yes'; } else { $array=nodes::getPoll($user_id,$poll_id); - if ($array['node_permission']=='ban') $voted='yes'; + if (isset($array['node_permission']) && $array['node_permission']=='ban') $voted='yes'; else $voted='no'; } -- 2.30.2