Permalink
Browse files

Projects: если выбран исполнитель или проект реализован, то не выводи…

…ть форму для отклика #322
  • Loading branch information...
yusupovb committed Apr 24, 2017
1 parent 19a4eed commit 71631cd7ac32929e0ef3e27c8b540f66c621effb
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/projects/inc/projects.offers.php
@@ -482,7 +482,7 @@
/* ===== */
$sql = $db->query("SELECT * FROM $db_projects_offers WHERE offer_pid=" . $id . " AND offer_userid=" . $usr['id'] . "");
if ($sql->fetchColumn() == 0 && $addoffer_enabled && $usr['auth_offers'] && $usr['id'] != $item['item_userid'] && empty($performer))
if ($sql->fetchColumn() == 0 && $addoffer_enabled && $usr['auth_offers'] && $usr['id'] != $item['item_userid'] && !($item['item_performer'] || $item['item_realized']))
{
$t_o->assign(array(
"OFFER_FORM_COSTMIN" => cot_inputbox('text', 'costmin', $roffer['offer_cost_min'], 'size="7"'),

0 comments on commit 71631cd

Please sign in to comment.