pull/1195/head
Alexandre Alapetite 8 years ago
parent 967dff535d
commit e315192c4b
  1. 2
      app/Models/CategoryDAO.php
  2. 2
      app/Models/FeedDAO.php

@ -10,7 +10,7 @@ class FreshRSS_CategoryDAO extends Minz_ModelPdo implements FreshRSS_Searchable
);
if ($stm && $stm->execute($values)) {
return $this->bd->lastInsertId('"' . parent::prefix . 'category_id_seq"');
return $this->bd->lastInsertId('"' . $this->prefix . 'category_id_seq"');
} else {
$info = $stm == null ? array(2 => 'syntax error') : $stm->errorInfo();
Minz_Log::error('SQL error addCategory: ' . $info[2]);

@ -16,7 +16,7 @@ class FreshRSS_FeedDAO extends Minz_ModelPdo implements FreshRSS_Searchable {
);
if ($stm && $stm->execute($values)) {
return $this->bd->lastInsertId('"' . parent::prefix . 'feed_id_seq"');
return $this->bd->lastInsertId('"' . $this->prefix . 'feed_id_seq"');
} else {
$info = $stm == null ? array(2 => 'syntax error') : $stm->errorInfo();
Minz_Log::error('SQL error addFeed: ' . $info[2]);

Loading…
Cancel
Save