\r
public function exec($statement)\r
{\r
- @call_user_func(MysqlPDO::$handler . 'query', $statement, $this->dbcon);\r
- return @call_user_func(MysqlPDO::$handler . 'affected_rows', $this->dbcon);\r
+ $result = @call_user_func(MysqlPDO::$handler . 'query', $statement, $this->dbcon);\r
+ if ( $result === FALSE )\r
+ {\r
+ return FALSE;\r
+ }\r
+ $ret = @call_user_func(MysqlPDO::$handler . 'affected_rows', $this->dbcon);\r
+ if ( $ret > -1 )\r
+ {\r
+ return $ret;\r
+ }\r
+ return;\r
}\r
\r
public function getAttribute($attribute)\r