1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 09:04:38 +02:00

Issue #213 Chatbox avatar issue corrected.

This commit is contained in:
Cameron
2013-05-05 01:13:21 -07:00
parent 18e0d21024
commit 464bfa47c5
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<?php <?php
// $Id$ // $Id$
function user_avatar_shortcode($parm='') function user_avatar_shortcode($parm=null)
{ {
global $loop_uid; global $loop_uid;
@@ -27,7 +27,7 @@ function user_avatar_shortcode($parm='')
$image=$row['user_image']; $image=$row['user_image'];
} }
} }
elseif($parm) elseif(!is_null($parm))
{ {
$image=$parm; $image=$parm;
} }

View File

@@ -284,7 +284,7 @@ if(!$text = $e107cache->retrieve("nq_chatbox"))
define("CB_MOD", check_class($pref['cb_mod'])); define("CB_MOD", check_class($pref['cb_mod']));
$qry = " $qry = "
SELECT c.*, u.user_name FROM #chatbox AS c SELECT c.*, u.user_name, u.user_image FROM #chatbox AS c
LEFT JOIN #user AS u ON SUBSTRING_INDEX(c.cb_nick,'.',1) = u.user_id LEFT JOIN #user AS u ON SUBSTRING_INDEX(c.cb_nick,'.',1) = u.user_id
ORDER BY c.cb_datestamp DESC LIMIT 0, ".intval($chatbox_posts); ORDER BY c.cb_datestamp DESC LIMIT 0, ".intval($chatbox_posts);