dummen fehler in laufbedingung von schleifen behoben.

This commit is contained in:
Marcel Naeve 2024-04-17 21:46:52 +02:00
parent f77129975a
commit cf660d21c3
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ class NumberBaseCryptCollection extends NumberBaseCrypt {
*/
public function render() : string {
$cd = [];
for($i=0;$i<$this->dataList;$i++) {
for($i=0;$i<count($this->dataList);$i++) {
$cd[] = $this->addLength($this->base10ToBase($this->dataList[$i]));
}
return implode('', $cd);
@ -67,7 +67,7 @@ class NumberBaseCryptCollection extends NumberBaseCrypt {
*/
public function renderComplex() : string {
$cd = [];
for($i=0;$i<$this->dataList;$i++) {
for($i=0;$i<count($this->dataList);$i++) {
$this->setDigits($this->digitList[$i]);
$cd[] = $this->addLength($this->base10ToBase($this->dataList[$i]));
}