Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Bug in Observer_Slug
  • Hi, I get this error when I try to save a content with same title: Undefined offset: 1 in <...>/fuel/packages/orm/classes/observer/slug.php on line 63 I would change the line 63 from:
    $index = (int) $matches[1];
    to
    $index = isset($matches[1]) ? (int) $matches[1] : 0; This is because when you find the original slug (without the postfix '-<number') $matches contains only the globalm match. I hope this can help.
    Have a nice day.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!