X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions.php;h=ddb3cb813ed8bd688f9239b8089b9eaa8fe0e7b6;hp=3e301719a8b3b297f4cb36d1a5f4765d707d873b;hb=0e899620c7a065952d6787c236fb2b33ae337d6a;hpb=121dafd40be4c4b3e41f37a943b86cf2cb48a224 diff --git a/inc/extensions.php b/inc/extensions.php index 3e301719a8..ddb3cb813e 100644 --- a/inc/extensions.php +++ b/inc/extensions.php @@ -433,7 +433,7 @@ function EXTENSION_UPDATE($file, $ext, $EXT_VER, $dry_run=false) { // Task not created so it's a brand-new extension which we need to register and create a task for! $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_task_system (assigned_admin, userid, status, task_type, subject, text, task_created) VALUES ('%s', '0', 'NEW', 'EXTENSION_UPDATE', '%s', '%s', UNIX_TIMESTAMP())", - array(GET_ADMIN_ID(SQL_ESCAPE($_SESSION['admin_login'])), $ext_subj, addslashes($NOTES)), __FILE__, __LINE__); + array(GET_ADMIN_ID(SQL_ESCAPE(get_session('admin_login'))), $ext_subj, addslashes($NOTES)), __FILE__, __LINE__); } // Free memory