summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-10 14:18:19 -0800
committerEvan Prodromou <evan@status.net>2010-01-10 14:18:19 -0800
commit866dfa6822df54765a9b92336722d86cfad6b123 (patch)
tree013aa4144fcebdd605e4bf2e8ebf491bf1449eb0 /lib
parent8cf1ef862d9021c0c1015b7a5cccb8e26409057a (diff)
parent7aa43f3c93a5434b59a66824b2816d5ba8cf1978 (diff)
Merge branch 'master' into 0.9.x
Conflicts: classes/Memcached_DataObject.php
Diffstat (limited to 'lib')
-rw-r--r--lib/api.php4
-rw-r--r--lib/util.php5
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/api.php b/lib/api.php
index 4ed49e452..06d7c079d 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -140,12 +140,14 @@ class ApiAction extends Action
// Note: some profiles don't have an associated user
+ $defaultDesign = Design::siteDesign();
+
if (!empty($user)) {
$design = $user->getDesign();
}
if (empty($design)) {
- $design = Design::siteDesign();
+ $design = $defaultDesign;
}
$color = Design::toWebColor(empty($design->backgroundcolor) ? $defaultDesign->backgroundcolor : $design->backgroundcolor);
diff --git a/lib/util.php b/lib/util.php
index 50bd0e2ac..a4281121e 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -119,6 +119,11 @@ function common_language()
function common_munge_password($password, $id)
{
+ if (is_object($id) || is_object($password)) {
+ $e = new Exception();
+ common_log(LOG_ERR, __METHOD__ . ' object in param to common_munge_password ' .
+ str_replace("\n", " ", $e->getTraceAsString()));
+ }
return md5($password . $id);
}