How do I add an indicator to my .menu-item if it contains a .sub-menu?

I would do this with JS I’m afraid. It’s the quickest simplest form. Using jQuery I have this snippet.

jQuery(function($){
   $('.menu li:has(".sub-menu")').addClass('has-sub-menu');
});

Then you can use CSS to do what you need 🙂

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)