X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fbackend%2Fmysql%2Fbackend.inc;h=971bb104bd3a7aba4f2f97bbfcd87c67b6789d00;hb=9506a2cb819d240a403a0a10d9acd28428805e91;hp=deacb13a808a0d367d1a47ff158b26fbddb6ee3f;hpb=d240b101ff31d31e78cb52702028fd4bd0c5be5b;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/backend/mysql/backend.inc b/wwwroot/backend/mysql/backend.inc index deacb13..971bb10 100644 --- a/wwwroot/backend/mysql/backend.inc +++ b/wwwroot/backend/mysql/backend.inc @@ -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; +} + + } ?>