1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

cleanup redeclaration of db objects - similar issue to bugs #3632 and #3412

This commit is contained in:
CaMer0n
2006-12-31 14:46:30 +00:00
parent 02576e0037
commit 82a700cdef
7 changed files with 118 additions and 115 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/plugin.php,v $
| $Revision: 1.2 $
| $Date: 2006-12-07 15:41:50 $
| $Author: sweetas $
| $Revision: 1.3 $
| $Date: 2006-12-31 14:46:30 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
@@ -195,7 +195,7 @@ if ($action == 'uninstall')
}
if (is_array($eplug_user_prefs)) {
$sql = new db;
if (!is_object($sql)){ $sql = new db; }
$sql->db_Select("core", " e107_value", " e107_name='user_entended'");
$row = $sql->db_Fetch();
$user_entended = unserialize($row[0]);
@@ -318,7 +318,7 @@ if ($action == 'upgrade') {
}
if (is_array($upgrade_add_user_prefs)) {
$sql = new db;
if (!is_object($sql)){ $sql = new db; }
$sql->db_Select("core", " e107_value", " e107_name='user_entended'");
$row = $sql->db_Fetch();
$user_entended = unserialize($row[0]);
@@ -335,7 +335,7 @@ if ($action == 'upgrade') {
}
if (is_array($upgrade_remove_user_prefs)) {
$sql = new db;
if (!is_object($sql)){ $sql = new db; }
$sql->db_Select("core", " e107_value", " e107_name='user_entended'");
$row = $sql->db_Fetch();
$user_entended = unserialize($row[0]);