Advertisement:

Author Topic: [2.0] Error if a member have pm labels with high ids (>60)  (Read 1010 times)

Offline digger

  • Sr. Member
  • ****
  • Posts: 733
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
[2.0] Error if a member have pm labels with high ids (>60)
« on: March 04, 2018, 01:51:50 PM »
If a member have pm labels with id>60 and try to assign that label to any message it shows labels_too_many error.

There is a code in PersonalMessage.php file

Code: [Select]
// Check that this string isn't going to be too large for the database.
if ($set > 60)
$updateErrors++;
I think, here should be something like this

Code: [Select]
// Check that this string isn't going to be too large for the database.
if ($smcFunc['strlen']($set) > 60)
$updateErrors++;