power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

php 5.4 isset effect with TDbTableColumn::getInfo #466

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
All prado version.

protected function getInfo($name,$default=null)
{
    return isset($this->_info[$name]) ? $this->_info[$name] : $default;
}

php 5.4 "Checking non-numeric offsets of strings now returns FALSE" use:
    return array_key_exists($name, $this->_info) ? $this->_info[$name] : $default;

@see http://php.net/manual/en/function.isset.php

Original issue reported on code.google.com by nukboon@gmail.com on 20 Jul 2013 at 1:33

GoogleCodeExporter commented 8 years ago
$this->_info is supposed to be an array, not a string.  What error are you 
experiencing exactly?

Original comment by ctrlal...@gmail.com on 22 Jul 2013 at 5:21

GoogleCodeExporter commented 8 years ago
Sorry, I have mistaken.

:)

Original comment by nukboon@gmail.com on 22 Jul 2013 at 11:51

GoogleCodeExporter commented 8 years ago

Original comment by ctrlal...@gmail.com on 23 Jul 2013 at 1:16