diff --git a/etemplate/inc/class.sbox2.inc.php b/etemplate/inc/class.sbox2.inc.php index 1d6fb34982..d9b2d0b0e6 100644 --- a/etemplate/inc/class.sbox2.inc.php +++ b/etemplate/inc/class.sbox2.inc.php @@ -373,13 +373,12 @@ $content = array(); while ($projs && list( $key,$proj ) = each( $projs )) { - $content[$proj['id']] = $proj['title']; + $content[$proj['project_id']] = $proj['title']; } } else { - list( $proj ) = $projects->read_single_project( $id_name ); - if (count($proj)) + if ($proj = $projects->read_single_project( $id_name )) { $content = $proj['title']; // $customer_id = $proj['customer'];