fixed array_map over iterable
This commit is contained in:
parent
f47593575c
commit
6519512924
|
@ -136,10 +136,10 @@ class Application_Model_Show
|
||||||
$hosts = Application_Common_Database::prepareAndExecute( $sql,
|
$hosts = Application_Common_Database::prepareAndExecute( $sql,
|
||||||
array( ':show_id' => $this->getId() ), 'all');
|
array( ':show_id' => $this->getId() ), 'all');
|
||||||
|
|
||||||
$res = array_map( function($host) {
|
$res = array();
|
||||||
return $host['first_name']." ".$host['last_name'];
|
foreach ($hosts as $host) {
|
||||||
}, $hosts);
|
$res[] = $host['first_name']." ".$host['last_name'];
|
||||||
|
}
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue