summaryrefslogtreecommitdiffstats
path: root/system/libraries/Javascript.php
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-05-02 16:17:29 +0200
committerTimothy Warren <tim@timshomepage.net>2012-05-02 16:17:29 +0200
commit9e0be2ba2179a93200d16a72c74e2ac61f9a71d4 (patch)
tree69a0b447980c260ee40d53714ad58036ada8da1a /system/libraries/Javascript.php
parentb75faa1a03a32330e412f0bd0332fb9fa389e914 (diff)
parentee04a913dfd78d394a0e09f01655df0870369512 (diff)
Merge upstream
Diffstat (limited to 'system/libraries/Javascript.php')
-rw-r--r--system/libraries/Javascript.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Javascript.php b/system/libraries/Javascript.php
index 629a3adfe..dd2df697c 100644
--- a/system/libraries/Javascript.php
+++ b/system/libraries/Javascript.php
@@ -723,7 +723,7 @@ class CI_Javascript {
{
if (is_object($result))
{
- $json_result = $result->result_array();
+ $json_result = is_callable(array($result, 'result_array')) ? $result->result_array() : (array) $result;
}
elseif (is_array($result))
{