get_poll moved to backend (TODO: rewrite/remove)
[mirrors/Kyberia-bloodline.git] / wwwroot / backend / mysql / backend.inc
index deacb13a808a0d367d1a47ff158b26fbddb6ee3f..971bb104bd3a7aba4f2f97bbfcd87c67b6789d00 100644 (file)
@@ -683,6 +683,22 @@ public static function getThreadedChildren($node_id,$node_vector,$offset,$limit,
        return $get_children_array;
 }
 
+// XXX
+
+public static function getPoll($user_id,$poll_id) {
+       global $db;
+               
+       $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_parent='$poll_id' and template_id='1549834' order by node_id desc limit 1");
+
+       $set->next();
+       $array=$set->getRecord();
+       
+       return $array;
+}
+
+
 }
 
 ?>
This page took 0.108757 seconds and 4 git commands to generate.