Well, nothing wrong with that function, its how you use it.
Apperently u use it somewhere with a wrong "text" variable.
Trace back the changes you've made in details.php (like removing one-by-one multilang() function out of it.) and see where the error messages stops.