Skip to content
Browse files

Merge pull request #42 from laurentj/bugfix-1.4.x

various bug fix on 1.4.x
  • Loading branch information...
2 parents b4627bf + 896be99 commit 2cd8e22a082774a30d1c8f7991546306a0f335f4 @foxmask foxmask committed Oct 31, 2011
View
4 havefnubb/modules/havefnubb/controllers/posts.classic.php
@@ -154,10 +154,6 @@ public function lists() {
$tpl->assign('lvl',$forum->child_level);
$tpl->assign('properties',$properties);
$tpl->assign('currentIdForum',$forum->id_forum);
- if (jAuth::isConnected())
- $tpl->assign('subcribedToThisForum',jDao::get('havefnubb~forum_sub')->get(jAuth::getUserSession()->id,$forum->id_forum));
- else
- $tpl->assign('subcribedToThisForum',false);
$tpl->assign('ftitle',$ftitle);
$tpl->assign('statusAvailable',self::$statusAvailable);
$tpl->assign('lastMarkThreadAsRead',
View
2 havefnubb/modules/havefnubb/templates/posts.edit.tpl
@@ -25,7 +25,7 @@
</fieldset>
{formcontrols}
{ifctrl 'tags'}
- {if $reply == 0}{*no display of the tags field for reply *}
+ {if !isset($reply) || $reply == 0}{*no display of the tags field for reply *}
<fieldset>
<legend>{ctrl_label 'tags'}</legend>
{@havefnubb~post.form.tags.description@}<br/>
View
5 havefnubb/modules/hfnurates/controllers/default.classic.php
@@ -39,10 +39,11 @@ function rate_it() {
function rate_ajax_it() {
//info about the "source" from where the datas come from
$id_source = $this->intParam('id_source');
- $source= $this->param('source');
+ $source = $this->param('source');
//check if the cancel button was selected
- if ($id_source == 0 or $source == '') return;
+ if ($id_source == 0 or $source == '')
+ return $this->getResponse('htmlfragment');
$rate = $this->floatParam('star1');
jClasses::getService('hfnurates~rates')->saveRatesBySource($id_source,$source,$rate);
View
3 havefnubb/modules/hfnusearch/controllers/default.classic.php
@@ -107,7 +107,8 @@ public function query() {
*/
public function queryajax () {
$string = (string) $this->param('q');
- if ($string == '') return;
+ if ($string == '')
+ return $this->getResponse('htmlfragment');
$additionnalParam = '';

0 comments on commit 2cd8e22

Please sign in to comment.
Something went wrong with that request. Please try again.