projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e939c87
)
RooJsonOutputTrait.php
author
edward
<edward@roojs.com>
Thu, 28 Apr 2016 08:41:23 +0000
(16:41 +0800)
committer
edward
<edward@roojs.com>
Thu, 28 Apr 2016 08:41:23 +0000
(16:41 +0800)
RooJsonOutputTrait.php
patch
|
blob
|
history
diff --git
a/RooJsonOutputTrait.php
b/RooJsonOutputTrait.php
index
c307d27
..
207986d
100644
(file)
--- a/
RooJsonOutputTrait.php
+++ b/
RooJsonOutputTrait.php
@@
-131,6
+131,10
@@
trait Pman_Core_RooJsonOutputTrait {
function jdata($ar,$total=false, $extra=array(), $cachekey = false)
{
+ if ($this->transObj ) {
+ $this->transObj->query( connection_aborted() ? 'ROLLBACK' : 'COMMIT');
+ }
+
// should do mobile checking???
if ($total == false) {
$total = count($ar);