mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Removed truncate table from user_extended test.
This commit is contained in:
@@ -394,6 +394,10 @@ class usersettings_shortcodes extends e_shortcode
|
|||||||
{
|
{
|
||||||
$this->loadUECatData();
|
$this->loadUECatData();
|
||||||
}
|
}
|
||||||
|
if(empty($this->fieldInfo))
|
||||||
|
{
|
||||||
|
$this->loadUEFieldData();
|
||||||
|
}
|
||||||
|
|
||||||
$catList = $this->catInfo;
|
$catList = $this->catInfo;
|
||||||
|
|
||||||
|
@@ -117,6 +117,7 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
// clear the table.
|
// clear the table.
|
||||||
|
/*
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
$fieldCount = (int) $sql->count('user_extended_struct');
|
$fieldCount = (int) $sql->count('user_extended_struct');
|
||||||
|
|
||||||
@@ -126,7 +127,7 @@
|
|||||||
$sql->truncate('user_extended_struct');
|
$sql->truncate('user_extended_struct');
|
||||||
$this->ue->init(); // reload the extended fields from db.
|
$this->ue->init(); // reload the extended fields from db.
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// Add a field of each type.
|
// Add a field of each type.
|
||||||
foreach($this->structTypes as $k=> $v)
|
foreach($this->structTypes as $k=> $v)
|
||||||
|
Reference in New Issue
Block a user