Skip to content

Instantly share code, notes, and snippets.

@fusco
Created April 25, 2012 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fusco/2491891 to your computer and use it in GitHub Desktop.
Save fusco/2491891 to your computer and use it in GitHub Desktop.
$sql .= ($first ? "" : ", ") . "(" . (intval($category['categories_id']) + 1) . ", " . $category['parent_id'] . ", " . $category['level_depth'] . ", " . (isset($category['categories_status']) ? intval($category['categories_status']) : 1) . ", '" . $category['date_added'] . "', '" . $category['last_modified'] . "'".($ps_version >= 1.4 ? ', '.((isset($category['sort_order']) AND $category['sort_order']) ? $category['sort_order'] : '0') : '').")";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment