From 11a92936e370ce4bb35398a0f373f113ae72bd98 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sun, 04 Nov 2012 17:29:29 +0000 Subject: [PATCH] Poprawka błędu typu "Undefined property: PDOStatement::$rowCount" w pliku ./class/BotSession.php --- class/BotSession.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/class/BotSession.php b/class/BotSession.php index 494f377..36cd174 100644 --- a/class/BotSession.php +++ b/class/BotSession.php @@ -39,8 +39,8 @@ $this->PDO->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_TO_STRING); $st = $this->PDO->query('SELECT value FROM data WHERE class=\'\' AND name=\'_version\''); - if($st->rowCount > 0) { - $row = $st->fetch(PDO::FETCH_ASSOC); + $row = $st->fetch(PDO::FETCH_ASSOC); + if(is_array($row)) { $version = (int)$row['value']; } else -- Gitblit v1.9.1