Skip to content

Commit 2cb27ac

Browse files
committed
thusfar
1 parent ed08f54 commit 2cb27ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Nether/Common/Datastore.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,9 @@ public function
10431043
Inc(string|int $Key, int|float $Inc=1):
10441044
int|float {
10451045

1046+
if(!isset($this->Data[$Key]))
1047+
$this->Data[$Key] = 0;
1048+
10461049
$Val = match(TRUE) {
10471050
is_int($this->Data[$Key]),
10481051
is_float($this->Data[$Key])

0 commit comments

Comments
 (0)