Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Folio: полностью удалять работы при удалении пользователя #319
Browse files Browse the repository at this point in the history
  • Loading branch information
devkont committed Apr 24, 2017
1 parent 71631cd commit 1a285c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/folio/folio.setup.php
Expand Up @@ -4,7 +4,7 @@
* Code=folio * Code=folio
* Name=Folio * Name=Folio
* Description=Портфолио * Description=Портфолио
* Version=2.6.0 * Version=2.6.1
* Date=24.11.2012 * Date=24.11.2012
* Author=CMSWorks Team * Author=CMSWorks Team
* Copyright=Copyright © CMSWorks.ru, littledev.ru * Copyright=Copyright © CMSWorks.ru, littledev.ru
Expand Down Expand Up @@ -48,7 +48,7 @@
* folio module * folio module
* *
* @package folio * @package folio
* @version 2.6.0 * @version 2.6.1
* @author CMSWorks Team * @author CMSWorks Team
* @copyright Copyright (c) CMSWorks.ru, littledev.ru * @copyright Copyright (c) CMSWorks.ru, littledev.ru
* @license BSD * @license BSD
Expand Down
6 changes: 5 additions & 1 deletion modules/folio/folio.userdelete.php
Expand Up @@ -19,4 +19,8 @@
defined('COT_CODE') or die('Wrong URL'); defined('COT_CODE') or die('Wrong URL');
require_once cot_incfile('folio', 'module'); 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.