| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 1.0.7 Free | |
| 4 | + * @version 2.0.12 Free | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <[email protected]> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | - * @copyright Copyright © 2021 FirePlugins All Rights Reserved | |
| 8 | + * @copyright Copyright © 2023 FirePlugins All Rights Reserved | |
| 9 | 9 | * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | namespace FireBox\Core\FB; |
| @@ -186,10 +186,10 @@ | ||
| 186 | 186 | * @return bool |
| 187 | 187 | */ |
| 188 | 188 | protected function cookieExist($box_id) |
| 189 | 189 | { |
| 190 | - $cookie = new \FireBox\Core\FB\Cookie($box_id); | |
| 190 | + $cookie = new \FireBox\Core\FB\Cookie(firebox()->box->get($box_id)); | |
| 191 | 191 | $cookie->set(); |
| 192 | 192 | |
| 193 | 193 | return $cookie->exist(); |
| 194 | 194 | } |
| 195 | 195 | } |