aboutsummaryrefslogtreecommitdiff
path: root/app/models/Category.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/Category.php')
-rwxr-xr-xapp/models/Category.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/Category.php b/app/models/Category.php
index 1ae324ace..a01034f4e 100755
--- a/app/models/Category.php
+++ b/app/models/Category.php
@@ -95,7 +95,7 @@ class CategoryDAO extends Model_pdo {
);
if ($stm && $stm->execute ($values)) {
- return $stm->rowCount();
+ return $this->bd->lastInsertId();
} else {
$info = $stm->errorInfo();
Minz_Log::record ('SQL error : ' . $info[2], Minz_Log::ERROR);