Minor - format

1.10.x
jmontoya 10 years ago
parent e45079df7a
commit c47cd67fed
  1. 1
      main/inc/lib/database.lib.php
  2. 4
      main/inc/lib/social.lib.php

@ -331,6 +331,7 @@ class Database
} catch (Exception $e) { } catch (Exception $e) {
error_log($e->getMessage()); error_log($e->getMessage());
api_not_allowed(false, get_lang('GeneralError')); api_not_allowed(false, get_lang('GeneralError'));
exit; exit;
} }
} }

@ -1219,7 +1219,7 @@ class SocialManager extends UserManager
* @return boolean * @return boolean
* @author Yannick Warnier * @author Yannick Warnier
*/ */
public static function sendWallMessage($userId, $friendId, $messageContent, $messageId = 0 ,$messageStatus) public static function sendWallMessage($userId, $friendId, $messageContent, $messageId = 0, $messageStatus = '')
{ {
$tblMessage = Database::get_main_table(TABLE_MESSAGE); $tblMessage = Database::get_main_table(TABLE_MESSAGE);
$userId = intval($userId); $userId = intval($userId);
@ -1445,7 +1445,7 @@ class SocialManager extends UserManager
$start = '0000-00-00'; $start = '0000-00-00';
} }
$isOwnWall = (api_get_user_id() == $userId && $userId == $friendId); $isOwnWall = (api_get_user_id() == $userId && $userId == $friendId);
$messages = self::getWallMessages($userId, MESSAGE_STATUS_WALL_POST , null, $start, $limit, $offset); $messages = self::getWallMessages($userId, MESSAGE_STATUS_WALL_POST, null, $start, $limit, $offset);
$users = array(); $users = array();
$data = array(); $data = array();
foreach ($messages as $key => $message) { foreach ($messages as $key => $message) {

Loading…
Cancel
Save