Skip to content
Snippets Groups Projects
Commit 457fd748 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

strtolower

parent e163a09b
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ class Item{
public function __construct($item){
if(is_array($item)){
$this->id = $item['type'];
$this->id = strtolower($item['type']);
if(isset($item['meta'])){
if(isset($item['meta']['display-name'])){
......
......@@ -34,7 +34,7 @@ public static function getShops($search=null){
$shops = Connexion::pdo()->query("SELECT * FROM qs_external_cache NATURAL JOIN qs_shops")->fetchAll(PDO::FETCH_ASSOC);
for($i=0;$i<count($shops);$i++){
$item = yaml_parse($shops[$i]['itemConfig']);
$shops[$i]['item'] = new Item(strtolower($item['item']));
$shops[$i]['item'] = new Item($item['item']);
$owner = json_decode($shops[$i]['owner'], true);
$shops[$i]['seller'] = new Seller($owner["owner"]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment