remove dead code , improve code
This commit is contained in:
parent
60aeea6e6b
commit
4b84ba4879
4 changed files with 8 additions and 4 deletions
|
|
@ -239,7 +239,7 @@ class DatabaseCore
|
|||
record_log($p_array);
|
||||
$this->rollback();
|
||||
|
||||
throw ($a);
|
||||
throw new \Exception("exec_sql fails",242,$a);
|
||||
}
|
||||
|
||||
return $this->ret;
|
||||
|
|
@ -732,7 +732,7 @@ class DatabaseCore
|
|||
|
||||
function upload($p_name,$only_oid = false)
|
||||
{
|
||||
|
||||
|
||||
//var $a : 0 we're in a transaction, 1 we are not in a transaction
|
||||
$a=0;
|
||||
if ( $this->status() !== PGSQL_TRANSACTION_INTRANS ) {
|
||||
|
|
|
|||
|
|
@ -1152,7 +1152,7 @@ class HtmlInput
|
|||
*/
|
||||
static function show_receipt_document($p_jr_id, $p_name="")
|
||||
{
|
||||
global $cn;
|
||||
$cn=\Dossier::connect();
|
||||
$image=$p_name;
|
||||
|
||||
// Check the jr_id has a receipt document
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue