- cosmetics mostly.
parent
a6121c1503
commit
9c23d8ae42
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue