summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-11 15:38:03 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-11 15:38:03 -0800
commitf80b5959f1bd3a015d55e10709040a35d6850090 (patch)
tree94369fe8df8c48a70ebc93e2e6d585c029115ad0 /modules/gallery/helpers
parent92db7f42181f6582763e7b5c56b18b989b061e21 (diff)
parent049f2af1c982bb12fee6e5512e4830f63d06d343 (diff)
Merge branch 'Ticket#1504' of git://github.com/Joe7/gallery3
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/l10n_client.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/gallery/helpers/l10n_client.php b/modules/gallery/helpers/l10n_client.php
index 8c2685a8..2af5c8d0 100644
--- a/modules/gallery/helpers/l10n_client.php
+++ b/modules/gallery/helpers/l10n_client.php
@@ -60,10 +60,14 @@ class l10n_client_Core {
"client_token" => l10n_client::client_token(),
"signature" => $signature,
"uid" => l10n_client::server_uid($api_key)));
+ if (!isset($response_data) && !isset($response_status)) {
+ return array(false, false);
+ }
+
if (!remote::success($response_status)) {
- return false;
+ return array(true, false);
}
- return true;
+ return array(true, true);
}
/**