From f5cb46d5ffa5c46d4b1aa176d9104e8dd67b24ae Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 30 Mar 2011 16:35:19 +0300 Subject: better --- MainDb.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) mode change 100755 => 100644 MainDb.php (limited to 'MainDb.php') diff --git a/MainDb.php b/MainDb.php old mode 100755 new mode 100644 index b2ce171..b8c16ce --- a/MainDb.php +++ b/MainDb.php @@ -3,13 +3,6 @@ // main/MainDb.php // @author Filipp Lepalaan // http://www.php.net/manual/en/language.oop5.patterns.php - -/* This program is free software. It comes without any warranty, to - * the extent permitted by applicable law. You can redistribute it - * and/or modify it under the terms of the Do What The Fuck You Want - * To Public License, Version 2, as published by Sam Hocevar. See - * http://sam.zoy.org/wtfpl/COPYING for more details. */ - class MainDb { private static $instance = NULL; @@ -110,7 +103,7 @@ class MainDb return MainApp::error($error); } - // DELETE statements should report number of rows + // DELETE statements should report number of rows deleted if (preg_match('/^DELETE/i', $sql)) { return $stmt->rowCount(); } -- cgit v1.2.3