Warning: preg_replace_callback(): Requires argument 2, '$func['entity_fix']('\2')', to be a valid callback in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3
Core Module: clannews.php - Bug
DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 20, 2019, 02:33:52 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Core Module: clannews.php - Bug  (Read 1544 times)
0 Members and 1 Guest are viewing this topic.
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1752


View Profile
« on: October 07, 2012, 05:06:58 PM »

In the dohook function, the code for hookname 'clanhall' contains the following code:

Code:
<?php
$args 
unserialize($row['arguments']);
array_unshift($args$row['newstext']);
$news call_user_func_array("sprintf_translate"$args);

The variable name $args is already in use by the function and this code overwrites any values it has with the arguments array from the query a few lines up.

Fix:
Change $args to $args2 or any other name that's not already being used.

Smiley
Logged

Check My Modules for the latest versions.
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
76 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search