summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-19 01:46:45 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-19 01:46:45 -0800
commitc3ed64fc6c0c1c9001d32191b0f1a5c21ec4b7c5 (patch)
tree19e582bfcfbb386ef9ba9eaabdd6357dd70d009c /modules
parent0b5ce9dbc1c5571ad80d5f4a1df3f21ab29429b4 (diff)
Use property_exists() on our stdClass instead of array_key_exists()
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/gallery_rest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_rest.php b/modules/gallery/helpers/gallery_rest.php
index 5fd73a2e..49096100 100644
--- a/modules/gallery/helpers/gallery_rest.php
+++ b/modules/gallery/helpers/gallery_rest.php
@@ -90,7 +90,7 @@ class gallery_rest_Core {
"resize_height", "resize_width", "slug", "sort_column", "sort_order",
"thumb_dirty", "thumb_height", "thumb_width", "title", "view_count",
"weight", "width") as $key) {
- if (array_key_exists($key, $request->params)) {
+ if (property_exists($request->params, $key)) {
$item->$key = $request->params->$key;
}
}