mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-20 12:52:58 +00:00
changed tabs and braces
modified: appinfo/formatphonenumber.php modified: appinfo/ocsmsapp.php modified: controller/smscontroller.php modified: db/smsmapper.php
This commit is contained in:
+4
-3
@@ -100,7 +100,7 @@ class SmsMapper extends Mapper {
|
||||
$fmtPN = FormatPhoneNumber::formatPhoneNumber($pn);
|
||||
if (!isset($phoneList[$fmtPN])) {
|
||||
$phoneList[$fmtPN] = array();
|
||||
}
|
||||
}
|
||||
if(!isset($phoneList[$fmtPN][$pn])) {
|
||||
$phoneList[$fmtPN][$pn] = 0;
|
||||
}
|
||||
@@ -110,12 +110,13 @@ class SmsMapper extends Mapper {
|
||||
if(isset($phoneList[$fpn])){
|
||||
return $phoneList[$fpn];
|
||||
}
|
||||
else
|
||||
else {
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
public function getAllMessagesForPhoneNumber ($userId, $phoneNumber, $minDate = 0) {
|
||||
|
||||
|
||||
$phlst = $this->getAllPhoneNumbersForFPN ($userId,$phoneNumber);
|
||||
$messageList = array();
|
||||
$query = \OCP\DB::prepare('SELECT sms_date, sms_msg, sms_type FROM ' .
|
||||
|
||||
Reference in New Issue
Block a user