summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Holywell <[email protected]>2013-01-30 09:51:12 +0000
committerSimon Holywell <[email protected]>2013-01-30 09:51:12 +0000
commit7826b93eb5eee6c7842eee828e9a56090984ee5d (patch)
tree5b5e103acdfd610dafe4b889cd9ae0d72c250c4e
parent3bfc44ca5c9816219de0510b1c9f02431616e8c0 (diff)
Simplify get_last_query()
-rw-r--r--idiorm.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/idiorm.php b/idiorm.php
index 20d8a58..c6d0570 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -413,8 +413,7 @@
return '';
}
- return implode('', array_slice(self::$_query_log[$connection_name], -1));
- // Used implode(array_slice()) instead of end() to avoid resetting interal array pointer
+ return end(self::$_query_log[$connection_name]);
}
/**