set variable, #8

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@137 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
pzinovkin
2010-03-27 00:01:27 +00:00
parent cb3ac1a04f
commit b817008f3a

View File

@ -153,6 +153,7 @@ abstract class DbStatement
public function fetchPairs() public function fetchPairs()
{ {
$data = array();
while ($row = $this->fetch(Db::FETCH_NUM)) { while ($row = $this->fetch(Db::FETCH_NUM)) {
$data[$row[0]] = $row[1]; $data[$row[0]] = $row[1];
} }