minor cleanup
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / smarty / node_methodz / function.get_poll.php
index 23f2c9e58929af36c84b3a5315c79a2e43a712d7..020281f0c1c1b2c5440f0331828f10a2af37894c 100644 (file)
@@ -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';
        }
 
This page took 0.107667 seconds and 4 git commands to generate.