X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=inc%2Fsmarty%2Fnode_methodz%2Ffunction.get_polls.php;h=41c7551eedf7123d1a4dd2700e8ff68069e91f0b;hb=b42b2bf946332ad8544d53f610be9cb05e80bf56;hp=b54fb4cc4b81ee54e570cee9286e73f0b50c8491;hpb=e586807dafc64c3fe152ab518599e6cf3f0f84e1;p=mirrors%2FKyberia-bloodline.git diff --git a/inc/smarty/node_methodz/function.get_polls.php b/inc/smarty/node_methodz/function.get_polls.php index b54fb4c..41c7551 100644 --- a/inc/smarty/node_methodz/function.get_polls.php +++ b/inc/smarty/node_methodz/function.get_polls.php @@ -5,7 +5,8 @@ if (!is_numeric($params['poll_id'])) $poll_id=$node['node_id']; else $poll_id=$params['poll_id']; $user_id=$_SESSION['user_id']; - $set=$db->query("select nodes.*,node_content.node_content,node_access.node_permission from nodes left join node_content on node_content.node_id=nodes.node_id left join node_access on (nodes.node_id=node_access.node_id and node_access.user_id='$user_id') where node_parent='$poll_id' and node_type='11' order by node_id desc limit 1"); +$node_vector=$node['node_vector']; + $set=$db->query("select nodes.*,node_access.node_permission from nodes left join node_access on (nodes.node_id=node_access.node_id and node_access.user_id='$user_id') where node_vector='$poll_id' and template_id='1549834' order by node_id desc limit 1"); $set->next(); $option_array=unserialize($set->getString('node_content')); $permission=$set->getString('node_permission'); @@ -17,4 +18,4 @@ $smarty->assign('get_poll',$poll); print_r($poll); } -?> \ No newline at end of file +?>