Commit 9c23d8ae authored by Kjartan's avatar Kjartan

- cosmetics mostly.

parent a6121c15
......@@ -674,7 +674,7 @@ function lm($text, $args = array(), $anchor = "", $attributes = array()) {
}
function field_get($string, $name) {
ereg(", $name=([^,]+)", ",$string", $regs);
ereg(",$name=([^,]+)", ",$string", $regs);
return $regs[1];
}
......
......@@ -184,7 +184,7 @@ function queue_block() {
if ($user->uid) {
$node = node_load(array("nid" => $id));
}
if (($user->uid == $node->uid || substr_count($node->users, "$user->uid=")) && $node->moderate == 1) {
if (($user->uid == $node->uid || field_get($node->users, $user->uid)) && $node->moderate == 1) {
foreach (explode(",", $node->users) as $vote) {
if ($vote) {
$data = explode("=", $vote);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment