dev #38
@ -32,10 +32,10 @@ class DressedItems
|
|||||||
|
|
||||||
public function getItemsInSlots()
|
public function getItemsInSlots()
|
||||||
{
|
{
|
||||||
$items = self::$db->fetchALL('SELECT * FROM inventory WHERE owner_id = ? AND dressed_slot > 0', $this->USERID);
|
$items = self::$db->ofetchALL('SELECT * FROM inventory WHERE owner_id = ? AND dressed_slot > 0', $this->USERID);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while ($i < count($items)) {
|
while ($i < count($items)) {
|
||||||
$this->dressedItem[$items['dressed_slot']] = $items;
|
$this->dressedItem[$items[$i]->dressed_slot] = $items;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
return $this->dressedItem;
|
return $this->dressedItem;
|
||||||
|
@ -28,8 +28,8 @@ class EffectsModel
|
|||||||
if ($this->DB) {
|
if ($this->DB) {
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while ($i < count($this->DB)) {
|
while ($i < count($this->DB)) {
|
||||||
if ($this->DB->type == self::EFFECT_HIDEUSERINFO) {
|
if ($this->DB[$i]->type == self::EFFECT_HIDEUSERINFO) {
|
||||||
return $this->DB->remaining_time;
|
return $this->DB[$i]->remaining_time;
|
||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user