From 31441a10ac0ef65e1d7a3b8c0c24c2efec85bfef Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 1 Apr 2010 14:02:19 -0300 Subject: Minor fixes --- classes/PhpIsisDb.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'classes/PhpIsisDb.php') diff --git a/classes/PhpIsisDb.php b/classes/PhpIsisDb.php index b8f6566..9807c0d 100644 --- a/classes/PhpIsisDb.php +++ b/classes/PhpIsisDb.php @@ -50,11 +50,14 @@ class PhpIsisDb implements IsisDb { return FALSE; } + // Tag results + $data = $this->tag(isis_fetch_array($results)); + // Charset conversion. array_walk_recursive($data, array('PhpIsisDb', 'charset')); // Return the result. - return $this->tag(isis_fetch_array($results)); + return $data; } /** @@ -106,13 +109,10 @@ class PhpIsisDb implements IsisDb { * @param $data * String to be converted. * - * @param $count - * Data index. Currently unused. - * * @return * String converted to UTF-8. */ - function charset($data, $count) { + function charset($data) { return iconv($data, $this->format['db']['charset'], 'UTF-8'); } } -- cgit v1.2.3