php5.2 fix from trunk, fixing bug #106: PHP 5.2.0 - Project Manager Fatal Error

This commit is contained in:
Ralf Becker 2006-12-04 14:02:40 +00:00
parent a52c23c0dc
commit 19e0226ba5

View File

@ -732,6 +732,8 @@
*/ */
function form_name($cname,$name) function form_name($cname,$name)
{ {
if(is_object($name)) return '';
$name_parts = explode('[',str_replace(']','',$name)); $name_parts = explode('[',str_replace(']','',$name));
if (!empty($cname)) if (!empty($cname))
{ {