Add user_type options: default, virtual

This commit is contained in:
markjcrane
2023-07-13 17:22:52 -06:00
parent e06c8ea208
commit 57614ea8af
5 changed files with 83 additions and 6 deletions

View File

@@ -238,7 +238,7 @@ if (!class_exists('users')) {
}
//copy the checked records
if (is_array($records) && @sizeof($records) != 0) {
if (!empty($records) && is_array($records) && @sizeof($records) != 0) {
//get checked records
foreach($records as $record) {
@@ -248,7 +248,7 @@ if (!class_exists('users')) {
}
//create the array from existing data
if (is_array($uuids) && @sizeof($uuids) != 0) {
if (!empty($uuids) && is_array($uuids) && @sizeof($uuids) != 0) {
$sql = "select * from v_".$this->table." ";
$sql .= "where ".$this->name."_uuid in (".implode(', ', $uuids).") ";
$database = new database;
@@ -271,7 +271,7 @@ if (!class_exists('users')) {
}
//save the changes and set the message
if (is_array($array) && @sizeof($array) != 0) {
if (!empty($array) && is_array($array) && @sizeof($array) != 0) {
//save the array
$database = new database;
$database->app_name = $this->app_name;