postgres fixes

This commit is contained in:
Thomas Citharel committed 2017-01-27 10:26:31 +01:00
1 parent bb69a960b2
commit ae5a8572d5
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -649,7 +649,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo implements FreshRSS_Searchable {
$values[] = intval($id);
break;
case 'A':
$where .= '1 ';
$where .= '1=1 ';
break;
default:
throw new FreshRSS_EntriesGetter_Exception('Bad type in Entry->listByType: [' . $type . ']!');
+1 -1
View File
@@ -67,7 +67,7 @@ class FreshRSS_FeedDAO extends Minz_ModelPdo implements FreshRSS_Searchable {
$set = '';
foreach ($valuesTmp as $key => $v) {
$set .= $key . '=?, ';
$set .= '`' . $key . '`=?, ';
if ($key == 'httpAuth') {
$valuesTmp[$key] = base64_encode($v);