Fixing send message PHP warnings

skala
Julio Montoya 13 years ago
parent b5bbbcac12
commit 091c270796
  1. 2
      main/inc/ajax/message.ajax.php
  2. 6
      main/messages/new_message.php

@ -63,7 +63,7 @@ switch ($action) {
} }
$sql .=' LIMIT 20'; $sql .=' LIMIT 20';
$result=Database::query($sql); $result=Database::query($sql);
$return = array();
if (Database::num_rows($result) > 0) { if (Database::num_rows($result) > 0) {
while ($row = Database::fetch_array($result,'ASSOC')) { while ($row = Database::fetch_array($result,'ASSOC')) {
$return[] = array('key'=>$row['id'], 'value' => $row['name']); $return[] = array('key'=>$row['id'], 'value' => $row['name']);

@ -47,10 +47,10 @@ $(document).ready(function () {
addontab: false, addontab: false,
cache: false, cache: false,
filter_case: false, filter_case: false,
filter_hide: true, filter_hide: false,
complete_text:"'.get_lang('StartToType').'", complete_text:"'.get_lang('StartToType').'",
firstselected: true, firstselected: false,
onselect:"check_users", onselect: check_users,
filter_selected: true, filter_selected: true,
newel: true newel: true
}); });

Loading…
Cancel
Save