Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

PHP Notice: Undefined index: column

Recommended Posts

Добрый день!

Не могу найти причину ошибки


Стандартная тема (default)


В логе

2021-04-12 19:11:10 - PHP Notice:  Undefined index: column in ...\admin\model\catalog\category.php on line 58

строка 57-58

public function editCategory($category_id, $data) {
		$this->db->query("UPDATE " . DB_PREFIX . "category SET parent_id = '" . (int)$data['parent_id'] . "', `top` = '" . (isset($data['top']) ? (int)$data['top'] : 0) . "', `column` = '" . (int)$data['column'] . "', sort_order = '" . (int)$data['sort_order'] . "', status = '" . (int)$data['status'] . "', date_modified = NOW() WHERE category_id = '" . (int)$category_id . "'");



Link to post
Share on other sites

значит в admin\view\template\catalog\category_form.tpl

<inpit ... name="column" ... />

Edited by Prooksius
Link to post
Share on other sites


получается не видит, когда код закомментирован 

Link to post
Share on other sites


Link to post
Share on other sites

лучше использую класс hidden

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.