summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2025-05-24 18:13:31 -0400
committerspiderr <spiderr@bitweaver.org>2025-05-24 18:13:31 -0400
commit0433bb9785a8144e04bbdb64bda3a13c914ad784 (patch)
tree31bb1c8f48d144ecbcb9d0def08106789157915f
parenta14a0dcdbf0dd23555bf81e5a98d943dae982f89 (diff)
downloadkernel-0433bb9785a8144e04bbdb64bda3a13c914ad784.tar.gz
kernel-0433bb9785a8144e04bbdb64bda3a13c914ad784.tar.bz2
kernel-0433bb9785a8144e04bbdb64bda3a13c914ad784.zip
::prepGetList verifyIdParameter on page; empty & bool checks in ::verifyId
-rw-r--r--includes/classes/BitBase.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/classes/BitBase.php b/includes/classes/BitBase.php
index efa9067..c48d8f5 100644
--- a/includes/classes/BitBase.php
+++ b/includes/classes/BitBase.php
@@ -387,7 +387,7 @@ abstract class BitBase {
}
if( is_array( $pId )) {
foreach( $pId as $id ) {
- if( (is_int( $id ) || ctype_digit( $id ) || (is_numeric( $id ) ? intval( $id ) == $id : false)) ) {
+ if( empty( $id ) || is_bool( $id ) || (is_int( $id ) || ctype_digit( $id ) || (is_numeric( $id ) ? intval( $id ) == $id : false)) ) {
return FALSE;
}
}
@@ -521,7 +521,7 @@ abstract class BitBase {
if( !isset( $pListHash['offset'] ) || !is_numeric( $pListHash['offset'] ) ) {
$pListHash['offset'] = 0;
- if( static::verifyId( $pListHash, 'page' )) {
+ if( static::verifyIdParameter( $pListHash, 'page' )) {
$pListHash['offset'] = ((int)$pListHash['page'] - 1) * $pListHash['max_records'];
} else {
if( !empty( $_REQUEST["offset"] )) {