X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_poll.php;h=020281f0c1c1b2c5440f0331828f10a2af37894c;hb=fd094549b00294ba13b4c04fcf4e7ed833a96e21;hp=23f2c9e58929af36c84b3a5315c79a2e43a712d7;hpb=9506a2cb819d240a403a0a10d9acd28428805e91;p=mirrors%2FKyberia-bloodline.git 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'; }