diff options
author | mikl <> | 2008-07-01 13:45:46 +0000 |
---|---|---|
committer | mikl <> | 2008-07-01 13:45:46 +0000 |
commit | fb561e971e02b77f1caa569fb13c35fb286bd1c9 (patch) | |
tree | 41d54658c4ac5db4461a1656f0e90f8c46f1a503 /framework/I18N/core/MessageSource_Database.php | |
parent | 81514767330333fdcfac3dd347718d3a585ea91f (diff) |
Minor fixes in I18N MessageSource
Diffstat (limited to 'framework/I18N/core/MessageSource_Database.php')
-rw-r--r-- | framework/I18N/core/MessageSource_Database.php | 9 |
1 files changed, 5 insertions, 4 deletions
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 @@ <?php
/**
- * MessageSource_MySQL class file.
+ * MessageSource_Database class file.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the BSD License.
@@ -20,9 +20,9 @@ require_once(dirname(__FILE__).'/MessageSource.php');
/**
- * MessageSource_MySQL class.
+ * MessageSource_Database class.
*
- * Retrive the message translation from a MySQL database.
+ * Retrive the message translation from a database.
*
* See the MessageSource::factory() method to instantiate this class.
*
@@ -194,7 +194,7 @@ class MessageSource_Database extends MessageSource 'UPDATE catalogue SET date_modified = :moddate WHERE cat_id = :catid');
$command->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();
}
|