<?php

/**
 * [BEGIN_COT_EXT]
 * Hooks=projects.list.first
 * [END_COT_EXT]
 */

defined('COT_CODE') or die('Wrong URL.');

$marketdistusrcat = ($usr['id'] > 0 ? $db->query("SELECT DISTINCT(item_cat) FROM $db_market WHERE item_userid=".$usr['id'].' AND item_state=0 AND item_cost>0')->fetchAll(PDO::FETCH_COLUMN) : array());
if(empty($c) && $usr['id'] > 0 && count($marketdistusrcat) > 0) {
  $a = (($a != 2) ? 1 : 0);
}