Php 8.1 compatibility fix

This commit is contained in:
Steffen Schultz 2022-05-08 19:35:14 +02:00
parent 2a741e6b5e
commit 050bf90d2b
2 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@
// Core extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/core
class YellowCore {
const VERSION = "0.8.78";
const VERSION = "0.8.79";
const RELEASE = "0.8.19";
public $page; // current page
public $content; // content files
@ -2937,7 +2937,7 @@ class YellowToolbox {
// Return array of specific size from text
public function getTextList($text, $separator, $size) {
$tokens = explode($separator, $text, $size);
return array_pad($tokens, $size, null);
return array_pad($tokens, $size, "");
}
// Return array of variable size from text, space separated
@ -2947,7 +2947,7 @@ class YellowToolbox {
foreach ($tokens as $key=>$value) {
if ($value==$optional) $tokens[$key] = "";
}
return array_pad($tokens, $sizeMin, null);
return array_pad($tokens, $sizeMin, "");
}
// Return text from array, space separated

View file

@ -21,11 +21,11 @@ Tag: feature
system/extensions/command.php: command.php, create, update
Extension: Core
Version: 0.8.78
Version: 0.8.79
Description: Core functionality of the website.
DocumentationUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/core
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/core.zip
Published: 2022-05-08 11:15:46
Published: 2022-05-08 19:28:58
Developer: Datenstrom
Tag: feature
system/extensions/core.php: core.php, create, update