diff --git a/lib/QrReader.php b/lib/QrReader.php index b7dd1ea..f976156 100644 --- a/lib/QrReader.php +++ b/lib/QrReader.php @@ -91,7 +91,7 @@ public function text() { $this->decode(); - if (method_exists($this->result, 'toString')) { + if ($this->result !== false && method_exists($this->result, 'toString')) { return $this->result->toString(); }