浏览代码

Fix the database class count.

Mark Crane 10 年之前
父节点
当前提交
ae583e6b06
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      resources/classes/database.php

+ 4 - 4
resources/classes/database.php

@@ -17,7 +17,7 @@
 
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
-	Copyright (C) 2010
+	Copyright (C) 2010 - 2015
 	All Rights Reserved.
 
 	Contributor(s):
@@ -517,10 +517,10 @@ include "root.php";
 						$prep_statement->execute();
 						$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
 						if ($row['num_rows'] > 0) {
-							$this->result = $row['num_rows'];
+							return $row['num_rows'];
 						}
 						else {
-							$this->result = 0;
+							return 0;
 						}
 					}
 					unset($prep_statement);
@@ -588,4 +588,4 @@ if (!function_exists('php_right')) {
 	$database->add();
 	print_r($database->result);
 */
-?>
+?>