From: edward Date: Thu, 28 Apr 2016 08:41:23 +0000 (+0800) Subject: RooJsonOutputTrait.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=05f0a2a3f33baee270db5e3c5e9cbee29a328ad7 RooJsonOutputTrait.php --- diff --git a/RooJsonOutputTrait.php b/RooJsonOutputTrait.php index c307d27d..207986df 100644 --- 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);