Update system/libraries/Javascript.php
diff --git a/system/libraries/Javascript.php b/system/libraries/Javascript.php
index b56dd98..0081361 100644
--- a/system/libraries/Javascript.php
+++ b/system/libraries/Javascript.php
@@ -723,14 +723,14 @@
{
if (is_object($result))
{
- if (is_callable( array( $result, "result_array" ) ))
- {
- $json_result = $result->result_array();
- }
- else
- {
- $json_result = (array)$result;
- }
+ if (is_callable( array( $result, "result_array" ) ))
+ {
+ $json_result = $result->result_array();
+ }
+ else
+ {
+ $json_result = (array)$result;
+ }
}
elseif (is_array($result))
{