Browse Source

fixup! fixup! fixup! src: Make inventory only fetch one item

master
Elis Hirwing 3 years ago
parent
commit
946460c74c
Signed by: etu GPG Key ID: D57EFA625C9A925F
  1. 2
      src/Etu/Helpers/Inventory.php

2
src/Etu/Helpers/Inventory.php

@ -24,6 +24,6 @@ class Inventory
// Execute and fetch result
$stmt->execute();
return $stmt->fetch();
return ($row = $stmt->fetch()) ? $row : null;
}
}

Loading…
Cancel
Save