fix defined()

A little fix on defined function call
This commit is contained in:
Filippo Lazzarini 2021-07-17 09:13:34 +02:00 committed by GitHub
parent d7d5d00b78
commit e3cb3401c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -590,7 +590,7 @@ function amp_insert_link($actions) {
global $ydb;
$keyword = $actions[2];
$user = defined(YOURLS_USER) ? YOURLS_USER : NULL;
$user = defined('YOURLS_USER') ? YOURLS_USER : NULL;
$table = YOURLS_DB_TABLE_URL;
// Insert $keyword against $username