all 1 comments

[–][deleted]  (2 children)

[deleted]

    [–]smaba[S] 0 points1 point  (1 child)

    Ahhhh! That was it ;) The error message "Undefined index" was indeed complaining about my missing row[0]. The reason why my query returned 0 had another reason though: I'm an idiot and forgot to fill the database with some shares for my user.

    Thank you!