Permalink
Browse files

Folio: полностью удалять работы при удалении пользователя #319

  • Loading branch information...
yusupovb committed Apr 24, 2017
1 parent 71631cd commit 1a285c475af56ed5d42040849208165b864dbb56
Showing with 7 additions and 3 deletions.
  1. +2 −2 modules/folio/folio.setup.php
  2. +5 −1 modules/folio/folio.userdelete.php
@@ -4,7 +4,7 @@
* Code=folio
* Name=Folio
* Description=Портфолио
* Version=2.6.0
* Version=2.6.1
* Date=24.11.2012
* Author=CMSWorks Team
* Copyright=Copyright © CMSWorks.ru, littledev.ru
@@ -48,7 +48,7 @@
* folio module
*
* @package folio
* @version 2.6.0
* @version 2.6.1
* @author CMSWorks Team
* @copyright Copyright (c) CMSWorks.ru, littledev.ru
* @license BSD
@@ -19,4 +19,8 @@
defined('COT_CODE') or die('Wrong URL');
require_once cot_incfile('folio', 'module');
$db->update($db_folio, array('item_state' => -1), "item_userid='" . $urr['user_id'] . "'");
$folioworks = $db->query("SELECT * FROM $db_folio WHERE item_userid=".$urr['user_id'])->fetchAll();
foreach ($folioworks as $item)
{
cot_folio_delete($item['item_id'], $item);
}

0 comments on commit 1a285c4

Please sign in to comment.