Browse Source

- Fix a couple of errors and warnings

pull/16/head
Jaussoin Timothée 12 years ago
parent
commit
659b48bd17
  1. 2
      app/widgets/Chat/Chat.php
  2. 2
      app/widgets/News/News.php
  3. 2
      app/widgets/Wall/Wall.php

2
app/widgets/Chat/Chat.php

@ -50,7 +50,7 @@ class Chat extends WidgetBase {
else {
$rc = new \modl\ContactDAO;
$contact = $rc->getRosterItem(echapJid($arr['jid']));
if($contact->chaton > 0 ) {
if(isset($contact) && $contact->chaton > 0 ) {
$html='
<div class="message presence">
<span class="date">' . date('G:i', time()) . '</span>' . prepareString(htmlentities($txt[$arr['presence']] . ' - ' . $arr['ressource'], ENT_COMPAT, "UTF-8")) . '

2
app/widgets/News/News.php

@ -83,7 +83,7 @@ class News extends WidgetCommon {
<a class="button color green icon refresh"
onclick="'.$this->genCallAjax('ajaxRefresh').'"
>'.
__('post.new_items', $count).' - '.__t('button.refresh').'
__('post.new_items', $count).' - '.__('button.refresh').'
</a>';
RPC::call('movim_posts_unread', $count);

2
app/widgets/Wall/Wall.php

@ -75,6 +75,8 @@ class Wall extends WidgetCommon
$next = $start + 10;
$html = '';
if(count($pl) > 0 && $htmlmessages != false) {
$wallhead = $this->tpl();
$wallhead->assign('start', $start);

Loading…
Cancel
Save