Rev 1050 | Rev 1201 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1050 | Rev 1116 | ||
---|---|---|---|
Line 59... | Line 59... | ||
59 | if (!OIDplus::baseconfig()->getValue('DISABLE_AJAX_TRANSACTIONS',false) && OIDplus::db()->transaction_supported()) { |
59 | if (!OIDplus::baseconfig()->getValue('DISABLE_AJAX_TRANSACTIONS',false) && OIDplus::db()->transaction_supported()) { |
60 | OIDplus::db()->transaction_begin(); |
60 | OIDplus::db()->transaction_begin(); |
61 | } |
61 | } |
62 | 62 | ||
63 | $json_out = $plugin->action($_REQUEST['action'], $params); |
63 | $json_out = $plugin->action($_REQUEST['action'], $params); |
64 | if (!is_array($json_out)) { |
- | |
65 | throw new OIDplusException(_L('Plugin with OID %1 did not output array of result data',$_REQUEST['plugin'])); |
- | |
66 | } |
- | |
67 | if (!isset($json_out['status'])) $json_out['status'] = -1; |
64 | if (!isset($json_out['status'])) $json_out['status'] = -1; |
68 | 65 | ||
69 | if (!OIDplus::baseconfig()->getValue('DISABLE_AJAX_TRANSACTIONS',false) && OIDplus::db()->transaction_supported()) { |
66 | if (!OIDplus::baseconfig()->getValue('DISABLE_AJAX_TRANSACTIONS',false) && OIDplus::db()->transaction_supported()) { |
70 | OIDplus::db()->transaction_commit(); |
67 | OIDplus::db()->transaction_commit(); |
71 | } |
68 | } |