From fb561e971e02b77f1caa569fb13c35fb286bd1c9 Mon Sep 17 00:00:00 2001 From: mikl <> Date: Tue, 1 Jul 2008 13:45:46 +0000 Subject: Minor fixes in I18N MessageSource --- framework/I18N/core/MessageSource_Database.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'framework/I18N/core/MessageSource_Database.php') diff --git a/framework/I18N/core/MessageSource_Database.php b/framework/I18N/core/MessageSource_Database.php index 4d756820..3ccea61b 100644 --- a/framework/I18N/core/MessageSource_Database.php +++ b/framework/I18N/core/MessageSource_Database.php @@ -1,6 +1,6 @@ bindParameter(':moddate',$time,PDO::PARAM_INT); $command->bindParameter(':catid',$cat_id,PDO::PARAM_INT); - $command->execute(); + $result=$command->execute(); if(!empty($this->cache)) $this->cache->clean($variant, $this->culture); @@ -235,6 +235,7 @@ class MessageSource_Database extends MessageSource $command->bindParameter(':dateadded',$time,PDO::PARAM_INT); foreach($messages as $message) { + if (empty($message)) continue; $count++; $inserted++; $command->execute(); } -- cgit v1.2.3