mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/12542] Properly check if textarea is undefined or null
PHPBB3-12542
This commit is contained in:
@@ -1241,7 +1241,7 @@ phpbb.applyCodeEditor = function(textarea) {
|
||||
* @param {object} textarea Textarea DOM object to apply editor to
|
||||
*/
|
||||
phpbb.showDragNDrop = function(textarea) {
|
||||
if (textarea === 'undefined') {
|
||||
if (textarea == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user