fix php 8
This commit is contained in:
parent
106aaf827f
commit
8d83763b62
@ -56,7 +56,11 @@ class Lang
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function arrayCount($arr){
|
public static function arrayCount($arr){
|
||||||
|
if(is_array($arr)){
|
||||||
return count($arr);
|
return count($arr);
|
||||||
|
}else{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getNotifText($key){
|
public static function getNotifText($key){
|
||||||
|
@ -260,10 +260,10 @@ switch ($action) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'print-voucher':
|
case 'print-voucher':
|
||||||
$from_id = _post('from_id') * 1;
|
$from_id = _post('from_id');
|
||||||
$planid = _post('planid') * 1;
|
$planid = _post('planid');
|
||||||
$pagebreak = _post('pagebreak') * 1;
|
$pagebreak = _post('pagebreak');
|
||||||
$limit = _post('limit') * 1;
|
$limit = _post('limit');
|
||||||
|
|
||||||
if ($pagebreak < 1) $pagebreak = 6;
|
if ($pagebreak < 1) $pagebreak = 6;
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ switch ($action) {
|
|||||||
$username = _post('username');
|
$username = _post('username');
|
||||||
$password = _post('password');
|
$password = _post('password');
|
||||||
$description = _post('description');
|
$description = _post('description');
|
||||||
$enabled = _post('enabled')*1;
|
$enabled = _post('enabled');
|
||||||
|
|
||||||
$msg = '';
|
$msg = '';
|
||||||
if(Validator::Length($name,30,4) == false){
|
if(Validator::Length($name,30,4) == false){
|
||||||
@ -113,7 +113,7 @@ switch ($action) {
|
|||||||
$username = _post('username');
|
$username = _post('username');
|
||||||
$password = _post('password');
|
$password = _post('password');
|
||||||
$description = _post('description');
|
$description = _post('description');
|
||||||
$enabled = $_POST['enabled']*1;
|
$enabled = $_POST['enabled'];
|
||||||
$msg = '';
|
$msg = '';
|
||||||
if(Validator::Length($name,30,4) == false){
|
if(Validator::Length($name,30,4) == false){
|
||||||
$msg .= 'Name should be between 5 to 30 characters'. '<br>';
|
$msg .= 'Name should be between 5 to 30 characters'. '<br>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user