? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
20 May 2017

Pull Request for Issue #14747

Summary of Changes

$var = count(false) => 1 see: http://php.net/manual/en/function.count.php

@tonypartridge please check this too as this comes from #14747

Testing Instructions

  • enable maximal error reporting
  • add one article
  • add one tag to a article
  • access the article from the frontend
  • get the URL for the list of the tagged articles
  • untag the tag from the article
  • see the error in the frontend Notice: Trying to get property of non-object in JRoot\components\com_tags\views\tag\view.html.php on line 120

Expected result

No error just the No matching items were found. message

Actual result

The No matching items were found. plus a PHP notice: Notice: Trying to get property of non-object in JRoot\components\com_tags\views\tag\view.html.php on line 120

Documentation Changes Required

none

avatar zero-24 zero-24 - open - 20 May 2017
avatar zero-24 zero-24 - change - 20 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 May 2017
Category com_tags Front End
avatar Melvine9
Melvine9 - comment - 20 May 2017

Thank you very much zero-24 . It's perfect ;-)

avatar wojsmol
wojsmol - comment - 20 May 2017

@Melvine9 If you tested this PR plese mark yuir test result on https://issues.joomla.org/tracker/joomla-cms/16143

avatar PhilETaylor PhilETaylor - comment - 20 May 2017
avatar PhilETaylor PhilETaylor - comment - 20 May 2017
avatar Melvine9
Melvine9 - comment - 20 May 2017

I have tested this item successfully on 679c010

Tested
PHP 7.1.5
The notice php fixed


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16143.
avatar Melvine9 Melvine9 - test_item - 20 May 2017 - Tested successfully
avatar Quy
Quy - comment - 20 May 2017

@zero-24 This a duplicate #16077. Plus this pr will not execute the code when there is 1 item.

avatar zero-24
zero-24 - comment - 20 May 2017

Thanks @Quy closing than.

avatar zero-24 zero-24 - change - 20 May 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-05-20 19:18:30
Closed_By zero-24
Labels Added: ?
avatar zero-24 zero-24 - close - 20 May 2017

Add a Comment

Login with GitHub to post a comment