noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 02/39: Bug Database:lo_unlink unknown variabl


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/39: Bug Database:lo_unlink unknown variable
Date: Sat, 11 Jul 2020 13:20:35 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 3f5759dfccd2f7f97d4c2a8e97eea86caa3d6730
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Wed May 6 23:47:04 2020 +0200

    Bug Database:lo_unlink unknown variable
---
 include/class/database.class.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/class/database.class.php b/include/class/database.class.php
index 101cc5e..30da3f4 100644
--- a/include/class/database.class.php
+++ b/include/class/database.class.php
@@ -89,7 +89,7 @@ class Database extends DatabaseCore
             $r = pg_fetch_array($ret, 0);
             $old_oid = $r['jr_pj'];
             if (strlen($old_oid) != 0)
-                pg_lo_unlink($cn, $old_oid);
+                $this->lo_unlink( $old_oid);
         }
         // Load new document
         $this->exec_sql("update jrn set jr_pj=$1 , jr_pj_name=$2,
@@ -115,7 +115,7 @@ class Database extends DatabaseCore
     /**
      * \brief loop to apply all the path to a folder or     a template
      * Upgrade check if the folder $p_name needs to be upgrade thanks the 
variable DBVERSION
-     * and run  all the SQL script named  upgradeX.sql from the folder 
noalyss/include/sql/patch 
+     * and run  all the SQL script named  upgradeX.sql from the folder 
noalyss/include/sql/patch
      * until  X equal DBVERSION-1
      *
      * \param $p_name database name
@@ -226,7 +226,7 @@ class Database extends DatabaseCore
 
                 if (!DEBUG)
                     ob_end_clean();
-                
+
             }
         }
         echo '</ul>';
@@ -253,4 +253,4 @@ class Database extends DatabaseCore
         }
         return $sys_name;
     }
-}
\ No newline at end of file
+}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]