| @@ 1104-1113 (lines=10) @@ | ||
| 1101 | foreach ($cache_descs as $desc) { |
|
| 1102 | // save text - added 2013/03/18 to be enable restoring data on reactivation |
|
| 1103 | // of accounts that were disabled before license transition |
|
| 1104 | if ($desc['desc'] != '') { |
|
| 1105 | sql( |
|
| 1106 | "INSERT IGNORE INTO `saved_texts` (`object_type`, `object_id`, `subtype`, `text`) |
|
| 1107 | VALUES ('&1', '&2', '&3', '&4')", |
|
| 1108 | OBJECT_CACHEDESC, |
|
| 1109 | $desc['id'], |
|
| 1110 | 1, |
|
| 1111 | $desc['desc'] |
|
| 1112 | ); |
|
| 1113 | } |
|
| 1114 | if ($desc['hint'] != '') { |
|
| 1115 | sql( |
|
| 1116 | "INSERT IGNORE INTO `saved_texts` (`object_type`, `object_id`, `subtype`, `text`) |
|
| @@ 1114-1123 (lines=10) @@ | ||
| 1111 | $desc['desc'] |
|
| 1112 | ); |
|
| 1113 | } |
|
| 1114 | if ($desc['hint'] != '') { |
|
| 1115 | sql( |
|
| 1116 | "INSERT IGNORE INTO `saved_texts` (`object_type`, `object_id`, `subtype`, `text`) |
|
| 1117 | VALUES ('&1', '&2', '&3', '&4')", |
|
| 1118 | OBJECT_CACHEDESC, |
|
| 1119 | $desc['id'], |
|
| 1120 | 2, |
|
| 1121 | $desc['hint'] |
|
| 1122 | ); |
|
| 1123 | } |
|
| 1124 | ||
| 1125 | if ($desc['desc'] != '') { |
|
| 1126 | if ($old_disabled) { |
|