summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-04-13 08:03:21 +0000
committerDries Buytaert <dries@buytaert.net>2007-04-13 08:03:21 +0000
commit78305a9e2dfd8a343b7fffb02822351ee91f1e46 (patch)
treef36dc6f2417e1aca7e9e6bec9d91b666f1c51d81
parent083a6a274dab71e4598bcdb55d7e6ae40a2e70ab (diff)
downloadbrdo-78305a9e2dfd8a343b7fffb02822351ee91f1e46.tar.gz
brdo-78305a9e2dfd8a343b7fffb02822351ee91f1e46.tar.bz2
- Patch #135846 by Gabor: killed two E_NOTICES
-rw-r--r--includes/locale.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/locale.inc b/includes/locale.inc
index b19dd4e84..e65e10c59 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -945,7 +945,7 @@ function _locale_import_one_string($op, $value = NULL, $mode = NULL, $lang = NUL
// update location field
db_query("UPDATE {locales_source} SET location = '%s' WHERE lid = %d", $comments, $lid);
$trans2 = db_fetch_object(db_query("SELECT lid, translation, plid, plural FROM {locales_target} WHERE lid = %d AND language = '%s'", $lid, $lang));
- if (!$trans2->lid) { // no translation in current language
+ if (!isset($trans2->lid)) { // no translation in current language
db_query("INSERT INTO {locales_target} (lid, language, translation, plid, plural) VALUES (%d, '%s', '%s', %d, %d)", $lid, $lang, $trans, $plid, $key);
$additions++;
} // translation exists
@@ -982,7 +982,7 @@ function _locale_import_one_string($op, $value = NULL, $mode = NULL, $lang = NUL
// update location field
db_query("UPDATE {locales_source} SET location = '%s' WHERE source = '%s'", $comments, $english);
$trans = db_fetch_object(db_query("SELECT lid, translation FROM {locales_target} WHERE lid = %d AND language = '%s'", $lid, $lang));
- if (!$trans->lid) { // no translation in current language
+ if (!isset($trans->lid)) { // no translation in current language
db_query("INSERT INTO {locales_target} (lid, language, translation) VALUES (%d, '%s', '%s')", $lid, $lang, $translation);
$additions++;
} // translation exists