Commit c6be16d9 authored by Dries's avatar Dries

- Patch #5351 by Kyber: fixed bug in field_get().
parent 95de30c7
......@@ -1054,7 +1054,7 @@ function l($text, $url, $attributes = array(), $query = NULL, $fragment = NULL)
}
function field_get($string, $name) {
ereg(",?$name=([^,]+)", ", $string", $regs);
ereg(",$name=([^,]+)", ",$string", $regs);
return $regs[1];
}
......
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