Commit 10bfe8c2 authored by Bong Cosca's avatar Bong Cosca
Browse files

Bug fix: desktop() detection

parent 16b0ab65
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ class Audit extends Prefab {
	**/
	function isdesktop() {
		$agent=Base::instance()->get('AGENT');
		return (bool)preg_match('/('.self::UA_Desktop.')/i',$agent);
		return (bool)preg_match('/('.self::UA_Desktop.')/i',$agent) && !ismobile();
	}

	/**