|
|
|
@ -198,10 +198,14 @@ switch ($action) { |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'list_wall_message': |
|
|
|
case 'list_wall_message': |
|
|
|
$start = isset($_REQUEST['start']) ? intval($_REQUEST['start']) - 1 : 0; |
|
|
|
if (api_is_anonymous()) { |
|
|
|
$length = isset($_REQUEST['length']) ? intval($_REQUEST['length']) : 10; |
|
|
|
break; |
|
|
|
$userId = isset($_REQUEST['u']) ? intval($_REQUEST['u']) : api_get_user_id(); |
|
|
|
} |
|
|
|
|
|
|
|
$start = isset($_REQUEST['start']) ? (int) $_REQUEST['start'] - 1 : 0; |
|
|
|
|
|
|
|
$length = isset($_REQUEST['length']) ? (int) $_REQUEST['length'] : 10; |
|
|
|
|
|
|
|
$userId = isset($_REQUEST['u']) ? (int) $_REQUEST['u'] : api_get_user_id(); |
|
|
|
$friendId = $userId; |
|
|
|
$friendId = $userId; |
|
|
|
|
|
|
|
|
|
|
|
$array = SocialManager::getWallMessagesPostHTML($userId, $friendId, null, $length, $start); |
|
|
|
$array = SocialManager::getWallMessagesPostHTML($userId, $friendId, null, $length, $start); |
|
|
|
if (!empty($array)) { |
|
|
|
if (!empty($array)) { |
|
|
|
ksort($array); |
|
|
|
ksort($array); |
|
|
|
|