mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-06 23:46:18 +00:00
Fix unchecked variable in controller when getting photos
* Also Typo fixes on dbmappers
This commit is contained in:
parent
100308b9ec
commit
a0c820ab82
@ -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]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -12,10 +12,11 @@
|
||||
|
||||
namespace OCA\OcSms\Db;
|
||||
|
||||
use OCP\AppFramework\Db\DoesNotExistException;
|
||||
use \OCP\AppFramework\Db\Mapper;
|
||||
use \OCP\IDb;
|
||||
|
||||
use \OCP\AppFramework\Db\Mapper;
|
||||
use \OCP\AppFramework\Db\DoesNotExistException;
|
||||
|
||||
class ConfigMapper extends Mapper {
|
||||
|
||||
/**
|
||||
|
@ -14,6 +14,7 @@ namespace OCA\OcSms\Db;
|
||||
use \OCP\IDb;
|
||||
|
||||
use \OCP\AppFramework\Db\Mapper;
|
||||
|
||||
use \OCA\OcSms\AppInfo\OcSmsApp;
|
||||
use \OCA\OcSms\Lib\PhoneNumberFormatter;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user