не правильно вызывалась функция

This commit is contained in:
CORP\phedor 2018-04-06 11:40:37 +03:00
parent 77fa3dbd5e
commit 0c9ae85fdc
2 changed files with 3 additions and 3 deletions

View file

@ -86,7 +86,7 @@ class Database_PDOStatement extends PDOStatement implements IteratorAggregate
} }
function getArray($name) { function getArray($name) {
return strToArray($this->fields[$name]); return Tools_String::strToArray($this->fields[$name]);
} }
function getRecordCount() { function getRecordCount() {

View file

@ -15,7 +15,7 @@ class Tools_String {
if ($in_subarr > 0) { // already in sub-array? if ($in_subarr > 0) { // already in sub-array?
$subarr[$in_subarr][] = $tok; $subarr[$in_subarr][] = $tok;
if ('}' === substr($tok, -1, 1)) { // check to see if we just added last component if ('}' === substr($tok, -1, 1)) { // check to see if we just added last component
$res[] = strToArray(implode(',', $subarr[$in_subarr])); $res[] = static::strToArray(implode(',', $subarr[$in_subarr]));
$in_subarr--; $in_subarr--;
} }
} elseif ($tok{0} === '{') { // we're inside a new sub-array } elseif ($tok{0} === '{') { // we're inside a new sub-array
@ -25,7 +25,7 @@ class Tools_String {
$subarr[$in_subarr] = array(); $subarr[$in_subarr] = array();
$subarr[$in_subarr][] = $tok; $subarr[$in_subarr][] = $tok;
} else { } else {
$res[] = strToArray($tok); $res[] = static::strToArray($tok);
} }
} else { // not sub-array } else { // not sub-array
$val = trim($tok, '"'); // remove " (surrounding strings) $val = trim($tok, '"'); // remove " (surrounding strings)