?
avatar infograf768
infograf768
4 Dec 2014

Select a category and trash. (Smart Search Index newly created, smartsearch plugins all enabled)

[04-Dec-2014 08:37:59 UTC] PHP Notice: Undefined variable: item in ROOT/plugins/finder/categories/categories.php on line 213

[04-Dec-2014 08:37:59 UTC] PHP Notice: Trying to get property of non-object in ROOT/plugins/finder/categories/categories.php on line 213

Code shows this is commented out:

            foreach ($pks as $pk)
            {
                /* TODO: The $item variable does not seem to be used at all
                $query = clone($this->getStateQuery());
                $query->where('a.id = ' . (int) $pk);

                $this->db->setQuery($query);
                $item = $this->db->loadObject();
                */

                // Translate the state.
                $state = null;

                if ($item->parent_id != 1)
etc.

If I uncomment this I get another notice:
Undefined property: stdClass::$parent_id

avatar infograf768 infograf768 - open - 4 Dec 2014
avatar jissues-bot jissues-bot - change - 4 Dec 2014
Labels Added: ?
avatar infograf768
infograf768 - comment - 4 Dec 2014

See and test #5314

Closing this issue.

avatar infograf768 infograf768 - change - 4 Dec 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-12-04 09:27:39
avatar infograf768 infograf768 - close - 4 Dec 2014

Add a Comment

Login with GitHub to post a comment