Current time: 03-21-2010, 01:11 PM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Little omission in inc/functions.php
08-03-2008, 08:04 PM (This post was last modified: 08-03-2008 08:04 PM by Troll.)
Post: #1
[F] Little omission in inc/functions.php
Hi all,

I was watching through the 1.4 inc/functions.php file in order to make modification for this new version and I find something strange...

In the last release of 1.2 series, the 1.2.14, this line has been fixed :

Code:
if($uid != $mybb->user['uid'])

To this :

Code:
if($uid != 0 && $uid != $mybb->user['uid'])
(it's line 852)

But in the functions.php file of the 1.4 release, the line is this yet :

Code:
if($uid != $mybb->user['uid'])

I imagine the modification that was made on 1.2.14 file was forgotten and not included in the 1.4 file, so I report it.


Good evening (or good morning / afternoon anywhere you are).
Find all posts by this user
08-05-2008, 02:38 AM
Post: #2
RE: Little omission in inc/functions.php
Both MyBB 1.2 and MyBB 1.4 have:

PHP Code:
if($uid != $mybb->user['uid']) 

Not sure where your code change came from.

[Image: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user
08-05-2008, 06:10 AM (This post was last modified: 08-05-2008 06:10 AM by Troll.)
Post: #3
RE: Little omission in inc/functions.php
Hello Tikitiki,

I've just verified : the inc/functions.php file included in the last revision of MyBB 1.2 (1.2.14), located in your post, contains at line 837 this code :

Code:
if($uid != 0 && $uid != $mybb->user['uid'])

So I am sure where my code change came from : you, in your last revision of Mybb 1.2(.14) Smile
Find all posts by this user
08-06-2008, 01:36 AM
Post: #4
RE: Little omission in inc/functions.php
Hi,

Okay thank you. I'm not sure why I missed that.

Ryan

[Image: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user
08-06-2008, 01:36 AM
Post: #5
[F] Little omission in inc/functions.php
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

[Image: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user
08-06-2008, 05:40 AM
Post: #6
RE: [F] Little omission in inc/functions.php
Hi,


Perfect Wink This is not an important change anyway Smile


Thank you for your work.


Regards,


Troll
Find all posts by this user
08-06-2008, 06:35 AM
Post: #7
RE: [F] Little omission in inc/functions.php
only to understand what does it? and can we change that line per hand?
Find all posts by this user


Forum Jump: