X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fcontrollers%2Fcatalog.php;h=fec8d642854418842fbd53dee49b35928d9f0f98;hb=74d7b5848a42e30e669cc05db22e83396b3cc107;hp=3285c67a244ea3da3eb66186d8c651446d9e988c;hpb=e6d03578fe9aac189cd096ec5c4e33b21a6b5a72;p=living-lab-site.git diff --git a/application/controllers/catalog.php b/application/controllers/catalog.php index 3285c67..fec8d64 100644 --- a/application/controllers/catalog.php +++ b/application/controllers/catalog.php @@ -57,10 +57,9 @@ class Catalog extends CI_Controller { { $this->load->helper('url'); - $str = '[{"def":"1080p"},{"def":"600p"}]'; - $a = json_decode($str); + $str = '800x600'; - echo count($a); + echo substr($str, strpos($str, 'x') + 1); } public function category($category_id, $offset = 0)