1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 07:56:23 +00:00

Fix dead code reported by @enoch85

This fixes issue #109
This commit is contained in:
Loic Blot 2016-04-08 10:40:23 +02:00
parent 46a5578b19
commit 6b68ccc2ac

View File

@ -99,7 +99,6 @@ class SmsController extends Controller {
}
$lastRead = $this->smsMapper->getLastReadDate($this->userId);
$ocversion = \OCP\Util::getVersion();
$photoURL = preg_replace("#^VALUE=uri:#","",$r["PHOTO"], 1);
$photoversion = 1;
if (version_compare($ocversion[0].".".$ocversion[1].".".$ocversion[2], "9.0.0", ">=")) {
$photoversion = 2;