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:
@@ -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]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user