1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

Fix unchecked variable in controller when getting photos

* Also Typo fixes on dbmappers
This commit is contained in:
Loic Blot
2015-01-18 15:45:08 +00:00
parent 100308b9ec
commit a0c820ab82
3 changed files with 12 additions and 3 deletions
+8 -1
View File
@@ -214,7 +214,14 @@ class SmsController extends Controller {
$fmtPN2 = preg_replace("#\/#","", $fmtPN);
$contacts[$fmtPN] = $contactsSrc[$fmtPN];
$contacts[$fmtPN2] = $contactsSrc[$fmtPN];
$photos[$fmtPN] = $photosSrc[$fmtPN];
if (isset($photosSrc[$contacts[$fmtPN]])) {
$photos[$contacts[$fmtPN]] = $photosSrc[$contacts[$fmtPN]];
}
if (isset($photosSrc[$contacts[$fmtPN2]])) {
$photos[$contacts[$fmtPN2]] = $photosSrc[$contacts[$fmtPN2]];
}
}
}