ID

Uploaded

Status

Description

Work Items

Action

4861
by VsesnabIT
Jan 8, 2010
1:19 AM

Applied

LinqToObjects.php
660 - 675

public function elementAt($index = null) {
$originalWhere = $this->_where;
$result = isset($this->_data[$index]) ? $this->_data[$index] : null;
$this->_where = $originalWhere;
#if (count($result) > 0) {
# return array_shift($result);
#}
Warning: array_shift() [function.array-shift]: The argument should be an array in LinqToObjects.php on line 668

if (!empty($result)){
if(is_array($result)){return array_shift($result);}
else {return $result;}
}
return null;
}


Applied Jan 11, 2010: Applied to SVN

Download

View All
  • 1-1 of 1 Patches
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Patches