fix php 8

This commit is contained in:
Ibnu Maksum
2023-09-26 13:50:02 +07:00
parent 106aaf827f
commit 8d83763b62
3 changed files with 11 additions and 7 deletions

View File

@ -70,7 +70,7 @@ switch ($action) {
$username = _post('username');
$password = _post('password');
$description = _post('description');
$enabled = _post('enabled')*1;
$enabled = _post('enabled');
$msg = '';
if(Validator::Length($name,30,4) == false){
@ -113,7 +113,7 @@ switch ($action) {
$username = _post('username');
$password = _post('password');
$description = _post('description');
$enabled = $_POST['enabled']*1;
$enabled = $_POST['enabled'];
$msg = '';
if(Validator::Length($name,30,4) == false){
$msg .= 'Name should be between 5 to 30 characters'. '<br>';