Page 1 of 1

Typo in example

Posted: Thu May 30, 2013 4:34 pm
by keith
I'm pretty sure there is a typo here

shouldn't the is_mobile_device line read?
$is_mobile_device = ($is_wireless || $is_tablet);

$is_wireless = ($requestingDevice->getCapability('is_wireless_device') == 'true');
$is_smarttv = ($requestingDevice->getCapability('is_smarttv') == 'true');
$is_tablet = ($requestingDevice->getCapability('is_tablet') == 'true');
$is_phone = ($requestingDevice->getCapability('can_assign_phone_number') == 'true');
$is_mobile_device = ($iswireless || $istablet);

from:
http://wurfl.sourceforge.net/php_index.php

Re: Typo in example

Posted: Thu May 30, 2013 5:50 pm
by kamermans
You're correct - thanks for the good catch! We'll get it updated soon.