- cosmetics mostly.

4.0.x
Kjartan Mannes 2002-06-15 17:48:54 +00:00
parent a6121c1503
commit 9c23d8ae42
2 changed files with 2 additions and 2 deletions

View File

@ -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];
}

View File

@ -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);